import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Test01 {
    public static void main(String[] args) {
        List<String> list=List.of("张三","李四","王五");

        for(String s:list){
            System.out.println(s);
        }
       /* Iterator<String> it=list.iterator();
        while(it.hasNext()){
            String str=it.next();
            System.out.println(str);
        }*/
//        list.remove("李四");

    }
}
